<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2010
 */

$user =	'Tom';//$_POST['user'];
$pass = 'Tom1';//$_POST['pass'];
$fname = 'Tommy';//$_POST['fname'];
$lname = 'Thumb';//$_POST['lname'];

try {



	/*** connect to SQLite database ***/
	$dbh = new PDO("sqlite:AS3ProjectDatabase.s3db");

	$usersLogin =$dbh->prepare("INSERT INTO Login(userId, userPassword) VALUES ('$user', '$pass')");
	$usersDetail =$dbh->prepare("INSERT INTO personalDetails(userFirstName, userLastName, userId) VALUES ('$fname', '$lname', '$user')");

	$usersLogin->execute();

	$usersLogin->closeCursor();

	$usersDetail->execute();


}
catch(PDOException $e)
{
	echo $e->getMessage();
}



?>
?>